
//技术模板说明

// Plaint对象转Entity(POJO)对象
// em.withEntity(JobTask,data)

// 对于位绑定的对象
// new WrappedEntity(data,em.getHydrator())

//获取已绑定的实体,并附上额外功能
// wrap(entity,true)


//使用纯净 knex 构建查询

// const knex = this.em.getKnex()('job_tasks as jjj')
// .select(['start_date as start_date',this.em.raw('COUNT(job_project_jobs.id) as job_count')])
// .leftJoin('job_project_jobs',(qb)=>{
//     qb.on("job_project_jobs.task_id","jjj.id")
// })
// .where('start_date', nowdate)
// .andWhere('job_project_jobs.start_time','>=','12:00')
// .groupBy('start_date')
// .orderBy('start_date','asc')
//
// const res = await this.em.getConnection().execute(knex);

